package com.flyco.modules.sms.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyco.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 砍价记录
 * @Author: flyco
 * @Date:   2020-05-18
 * @Version: V1.0
 */
@Data
@TableName("sms_bargain_follow")
@ApiModel(value="sms_bargain对象", description="砍价")
public class SmsBargainFollow implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**砍价活动id*/
    @ApiModelProperty(value = "砍价活动id")
	private Long bargainId;
	/**砍价商品id*/
	@ApiModelProperty(value = "砍价商品id")
	private Long bargainProductId;
	/**活动房间表id*/
    @Excel(name = "活动房间表id", width = 15)
    @ApiModelProperty(value = "活动房间表id")
	private Long bargainRoomId;
	/**砍价人会员id*/
    @Excel(name = "砍价人会员id", width = 15)
    @ApiModelProperty(value = "砍价人会员id")
	private Long memberId;
	@ApiModelProperty(value = "头像")
	private String avatar;
	/**0：老用户，1：新用户*/
	@Excel(name = "0：老用户，1：新用户", width = 15)
	@ApiModelProperty(value = "0：老用户，1：新用户")
	@Dict(dicCode = "yn")
	private Integer isNewMember;
	/**砍价前商品金额*/
    @Excel(name = "砍价前商品金额", width = 15)
    @ApiModelProperty(value = "砍价前商品金额")
	private java.math.BigDecimal beforePrice;
	/**砍价后商品金额*/
    @Excel(name = "砍价后商品金额", width = 15)
    @ApiModelProperty(value = "砍价后商品金额")
	private java.math.BigDecimal afterPrice;
	/**砍掉的价格*/
    @Excel(name = "砍掉的价格", width = 15)
    @ApiModelProperty(value = "砍掉的价格")
	private java.math.BigDecimal bargainPrice;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
}
